use std::env;
use std::path::PathBuf;
use std::path::Path;
use find_folder::Search;

pub const ASSETS: &'static str = "assets";
pub const MAIN_FONT: &'static str = "font";
pub const FONT_NAME: &'static str = "3dm.ttf";

lazy_static! {
    //pub static ref ASSETS_PATH: &'static ReSource = get_assets_path(FONT_NAME);
}

/*pub struct ReSource<'a> {
    pub name: &'a str,
    pub path: &'a str,
}

pub fn get_assets_path<'a>(file_name: &'a str) -> &'a ReSource {
    let mut exe_folder = env::current_exe().unwrap();
    exe_folder.pop();//去掉执行文件名
    let mut path_buf: PathBuf = Search::Parents(3).of(exe_folder).for_folder(ASSETS).expect("not found path");
    path_buf.push(file_name);
    let path = path_buf.to_str().unwrap();
    ReSource {
        name: file_name,
        path: path,
    }
}*/
